const obj = {
        name: 'yang',
        food: 'tianping'
    }
    // const food= obj.food;
    // es6 提供了api 结构
let { name, food } = obj;
console.log(name, food);
// let name = 'jkhk';

function introduct({ name, food }) {
    console.log(`${name},${food}`);
}
introduct(obj);